package com.ruoyi.domain.quality;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 质量检验记录对象 mes_quality_inspection
 * 
 * @author ruoyi
 */
@Data
public class MesQualityInspection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 检验记录ID */
    private Long inspectionId;

    /** 检验单号 */
    @Excel(name = "检验单号")
    private String inspectionCode;

    /** 工单ID */
    @Excel(name = "工单ID")
    private Long orderId;

    /** 工单编号 */
    @Excel(name = "工单编号")
    private String orderCode;

    /** 工序ID */
    @Excel(name = "工序ID")
    private Long processId;

    /** 工序名称 */
    @Excel(name = "工序名称")
    private String processName;

    /** 产品ID */
    @Excel(name = "产品ID")
    private Long productId;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String productCode;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 标准ID */
    @Excel(name = "标准ID")
    private Long standardId;

    /** 标准编码 */
    @Excel(name = "标准编码")
    private String standardCode;

    /** 检验员ID */
    @Excel(name = "检验员ID")
    private Long inspectorId;

    /** 检验员姓名 */
    @Excel(name = "检验员姓名")
    private String inspectorName;

    /** 检验日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectionDate;

    /** 抽样数量 */
    @Excel(name = "抽样数量")
    private Integer sampleQuantity;

    /** 合格数量 */
    @Excel(name = "合格数量")
    private Integer qualifiedQuantity;

    /** 不合格数量 */
    @Excel(name = "不合格数量")
    private Integer unqualifiedQuantity;

    /** 检验结论（合格/不合格） */
    @Excel(name = "检验结论", readConverterExp = "合格/不合格")
    private String conclusion;

    /** 状态（0已完成 1待确认） */
    @Excel(name = "状态", readConverterExp = "0=已完成,1=待确认")
    private String status;

    /** 检验类型（IQC/IPQC/FQC） */
    @Excel(name = "检验类型", readConverterExp = "I=QC/IPQC/FQC")
    private String inspectionType;

    /** 检验人员 */
    @Excel(name = "检验人员")
    private String inspector;

    /** 检验结果（合格/不合格） */
    @Excel(name = "检验结果", readConverterExp = "合=格/不合格")
    private String result;
}